package edu.sctu.practice.class01.fengleilin.test01;

import java.util.Scanner;

/**
 * Created by fll on 2015/10/12.
 */
public class GuessNumber {

public void guess(){

    NumberA a = new NumberA();
    int x = a.numA;

    for (int i = 0; i < 10; i++) {

        Scanner scanner = new Scanner(System.in);
        int y = scanner.nextInt();

        if (y < x) {
            System.out.println("您输入的数小了");
        } else if (y > x) {
            System.out.println("您输入的数大了");
        } else {
            System.out.println("您输入的数正确");
            break;
        }
    }
}
}
